package org.csmzxy.class2333;

import java.util.HashSet;
import java.util.Iterator;
public class Example07 {
    public static void main(String[] args){
       HashSet<String> set = new HashSet<>();
       set.add("张三");
       set.add("李四");
       set.add("王五");
       set.add("李四");
       Iterator<String> iterator = set.iterator();
       while (iterator.hasNext()){
           String member = iterator.next();
           System.out.println(member);
       }
    }
}
